﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace BeatEmUp.Characters.Enemies
{
    class EnemiesFactory
    {
        internal Enemies CreateEnemy(int playerLevel, int p, ContentManager contentManager, Vector2 randomPosition,GameTime gameTime)//Zmieniłem tak, żeby losowało pozycję przeciwnika względem pola gry
        {

            switch (p)
            {
                case 0:
                    return new Enemies(playerLevel, new Rectangle((int)randomPosition.X, (int)randomPosition.Y, 70, 86), contentManager.Load<Texture2D>(@"Sprites/Enemy/headhorseL"), contentManager.Load<Texture2D>(@"Sprites/Enemy/headhorseR"), gameTime);
                    

                case 1:
                    return new Enemies(playerLevel, new Rectangle((int)randomPosition.X, (int)randomPosition.Y, 70, 86), contentManager.Load<Texture2D>(@"Sprites/Enemy/GolemL"), contentManager.Load<Texture2D>(@"Sprites/Enemy/GolemR"), gameTime);
                    

                case 2:
                    return new Enemies(playerLevel, new Rectangle((int)randomPosition.X, (int)randomPosition.Y, 70, 86), contentManager.Load<Texture2D>(@"Sprites/Enemy/WerewolfL"), contentManager.Load<Texture2D>(@"Sprites/Enemy/WerewolfR"), gameTime);
                case 3:
                    return new Enemies(playerLevel, new Rectangle((int)randomPosition.X, (int)randomPosition.Y, 70, 86), contentManager.Load<Texture2D>(@"Sprites/Enemy/SlimeL"), contentManager.Load<Texture2D>(@"Sprites/Enemy/SlimeR"), gameTime);
                case 4:
                    return new Enemies(playerLevel, new Rectangle((int)randomPosition.X, (int)randomPosition.Y, 70, 86), contentManager.Load<Texture2D>(@"Sprites/Enemy/GigabeastL"), contentManager.Load<Texture2D>(@"Sprites/Enemy/GigabeastR"), gameTime);
                case 5:
                    return new Boss(playerLevel, new Rectangle((int)randomPosition.X, (int)randomPosition.Y, 208, 115), contentManager.Load<Texture2D>(@"Sprites/Enemy/GigabeastL"), contentManager.Load<Texture2D>(@"Sprites/Enemy/GigabeastR"), gameTime);
                default:
                    return new Enemies(playerLevel, new Rectangle((int)randomPosition.X, (int)randomPosition.Y, 70, 86), contentManager.Load<Texture2D>(@"Sprites/Enemy/headhorseL"), contentManager.Load<Texture2D>(@"Sprites/Enemy/headhorseR"), gameTime);
                    
            }

        }
    }
}
